import Vote from './vote.vue'
import VoteAdd from './voteAdd.vue'
import VoteView from './voteView.vue'
import VoteEdit from './voteEdit.vue'
import VoteSearch from './voteSearch.vue'

const components = [
  Vote,
  VoteAdd,
  VoteView,
  VoteEdit,
  VoteSearch
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}

export default main
